package com.igeekhome.service.impl;

import com.igeekhome.dto.SectionDestDto;
import com.igeekhome.dto.SectionNetworkDto;
import com.igeekhome.mapper.DestNetworkMapper;
import com.igeekhome.service.IDestNetworkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * @author 立以宁
 */

@Service("destNetworkService")
public class DestNetworkServiceImpl implements IDestNetworkService {

    @Autowired
    private DestNetworkMapper destNetworkMapper;

    @Override
    public List<SectionNetworkDto> selectNetworkMap(Integer section_id) {
        List<SectionNetworkDto> sectionNetworkDtos = destNetworkMapper.selectNetworkMap(section_id);
        return sectionNetworkDtos;
    }

    @Override
    public List<SectionDestDto> selectDestMap(Integer section_id) {
        List<SectionDestDto> sectionDestDtos = destNetworkMapper.selectDestMap(section_id);
        return sectionDestDtos;
    }
}
